<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>color属性</title>
    <style>

        .my-p-1 {
            /*设置颜色关键词*/
            color: red;
        }

        .my-p-16 {
            /*设置16进制的值*/
            color: #00B83F;
        }

        .my-p-rgb {
            /*设置rgb合成值*/
            color: rgb(255, 255, 0);
        }

    </style>
</head>
<body>
<p class="my-p-1">我是p1</p>
<p class="my-p-16">我是p2</p>
<p class="my-p-rgb">我是p3</p>
</body>
</html>